import React, {useEffect} from 'react';
import {useParams} from "react-router-dom";

function Courseinfo() {
    const params = useParams();

    useEffect(()=>{
        console.log(params);
    },[])

    return (
        <div>courseId : {params.courseId}</div>
    );
}

export default Courseinfo;
